package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 角色管理对象 s_role
 * 
 * @author yu
 * @date 2024-05-08
 */
public class SRole extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 角色id */
    private Long roleId;

    /** 角色名称 */
    @Excel(name = "角色名称")
    private String roleName;

    /** 角色权限名 */
    @Excel(name = "角色权限名")
    private String roleKey;

    /** 数据范围（权限范围1为全部权限2为自定数据权限） */
    private String dataScope;

    /** 菜单关联（菜单树选择是否关联显示） */
    private Integer menuCheckStrictly;

    /** 角色状态（0正常1停用） */
    @Excel(name = "角色状态", readConverterExp = "0=正常1停用")
    private String status;

    /** 删除标志 */
    private String delFlg;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer roleSort;

    public void setRoleId(Long roleId) 
    {
        this.roleId = roleId;
    }

    public Long getRoleId() 
    {
        return roleId;
    }
    public void setRoleName(String roleName) 
    {
        this.roleName = roleName;
    }

    public String getRoleName() 
    {
        return roleName;
    }
    public void setRoleKey(String roleKey) 
    {
        this.roleKey = roleKey;
    }

    public String getRoleKey() 
    {
        return roleKey;
    }
    public void setDataScope(String dataScope) 
    {
        this.dataScope = dataScope;
    }

    public String getDataScope() 
    {
        return dataScope;
    }
    public void setMenuCheckStrictly(Integer menuCheckStrictly) 
    {
        this.menuCheckStrictly = menuCheckStrictly;
    }

    public Integer getMenuCheckStrictly() 
    {
        return menuCheckStrictly;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlg(String delFlg) 
    {
        this.delFlg = delFlg;
    }

    public String getDelFlg() 
    {
        return delFlg;
    }
    public void setRoleSort(Integer roleSort) 
    {
        this.roleSort = roleSort;
    }

    public Integer getRoleSort() 
    {
        return roleSort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("roleId", getRoleId())
            .append("roleName", getRoleName())
            .append("roleKey", getRoleKey())
            .append("dataScope", getDataScope())
            .append("menuCheckStrictly", getMenuCheckStrictly())
            .append("status", getStatus())
            .append("delFlg", getDelFlg())
            .append("remark", getRemark())
            .append("roleSort", getRoleSort())
            .append("createTime", getCreateTime())
            .toString();
    }
}
